package com.zhdl.modules.common.protocol_param.service;

import com.project.network.entity.PortComm;
import com.project.network.entity.PortSocket;
import com.project.network.entity.Protocols;
import com.zhdl.modules.common.protocol_param.service.dto.PortCommQueryCriteria;
import com.zhdl.modules.common.protocol_param.service.dto.PortSocketQueryCriteria;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface ProtocolParamService {
    void deletePortCommDict(String id);

    void deletePortSocketDict(String id);

    PortComm findPortCommById(String id);

    PortSocket findPortSocketById(String id);

    List<PortComm> findAllProtocolComm();

    List<PortSocket> findAllProtocolSocket();

    Protocols saveProtocolsDict(Protocols protocols);

    PortComm savePortCommDict(PortComm portComm);

    PortSocket savePortSocketDict(PortSocket portSocket);

    PortComm updatePortCommDict(PortComm portComm);

    PortSocket updatePortSocketDict(PortSocket portSocket);

    Page<PortComm> findAllProtocolCommByCondition(PortCommQueryCriteria queryCriteria, Pageable pageable);

    Page<PortSocket> findAllProtocolSocketByCondition(PortSocketQueryCriteria queryCriteria, Pageable pageable);
}
